package com.wanmait.baohan.mapper;

import com.wanmait.baohan.pojo.Demand;
import com.wanmait.baohan.pojo.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DemandMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(@Param("demand") Demand record);

    int insertSelective(Demand record);

    Demand selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Demand record);

    int updateByPrimaryKey(Demand record);

    List<Demand> findAllDemandBySupplier(Integer id);

    Demand findOneDemandBySupplier(@Param("customerId") Integer customerId, @Param("demandId") Integer demandId);

    List<Demand> findAllBy(@Param("de") Demand demand);
    Demand findOneBy(Integer id);
}